<?php
include_once 'connection/connection_database.php';

class Slider {
    
    function FillAll(){
        $sql = "SELECT * FROM banner WHERE banner_display=2";
        $result = mysql_query($sql) or die(mysql_error());
        return $result;
    }
    
    function FillOne($slider) {
        $sql = "SELECT * FROM  banner WHERE banner_id='{$slider["id"]}' and banner_display=2";
        $result = mysql_query($sql) or die(mysql_error());
        return mysql_fetch_array($result);
    }

}



?>
